package com.dou.ourpro.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (Users)表实体类
 *
 * @author makejava
 * @since 2021-11-11 12:27:56
 */
@Data
public class Users extends Model<Users> {
    //用户ID
    private Long userId;

    private Long userGrade;
    //用户名

    private String name;

    private String userName;

    //用户密码
    private String userPassword;
    //用户邮箱
    private String userEmail;
    //注册时间
    private Date userRegistrationTime;

    private String userPhone;

    @TableField(exist = false)
    private String reuserPassword;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.userId;
    }
    }

